package com.solarStruggle.util

object Misc {
	def listToString[A](list: Seq[A], pre: String, in: String, post: String, maxChars: Int) = {
		var str = list.mkString(pre, in, post);
		if(str.length > maxChars) {
			str = str.substring(0, maxChars) + "..."
		}
		str
	}
}
